package com.test;

/**
 * 回文数
 * 11
 * 22
 * 121
 */
public class TTT {

    public static void main(String[] args) {
        System.out.println(Daxiang.getInstance());
    }

    public static void main1() {
        int a = 121;
        String str = String.valueOf(a);
        char[] c = str.toCharArray();
        StringBuilder tmp = new StringBuilder();
        for (int i = c.length - 1; i >= 0; i--) {
            tmp.append(c[i]);
        }
        System.out.printf(tmp.toString());
    }
}

class Daxiang {

    private volatile static Daxiang obj;

    private Daxiang() {
    }

    // 18600280084 娄晓龙
    public static synchronized Daxiang getInstance() {
        if (obj == null) {
            obj = new Daxiang();
        }
        return obj;
    }
}
